//
//  LabelViewController.h
//  eBook
//
//  Created by zhy on 12-12-2.
//  Copyright (c) 2012年 zhan. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol LabelViewControllerDelegate <NSObject>
-(void) AddLabel;
-(void) LabelSelectedWithPage:(int) page;
-(void) LabelSelectedwithChapter:(int) chapter andFeature:(int) feature andPage:(int) page;
@end

@interface LabelViewController : UIViewController<UITableViewDelegate,UITableViewDataSource>
{
    NSMutableArray *AllLabelArray;

    int currentChapter;
    int currentPage;//当前页，begin with 1
    int currentFeature;
    
    int currentRow;// -1:表示当前页不知当前列表书签中, >=0 ：表示已经当前页面已经加入列表的位置
}


@property (weak, nonatomic) id<LabelViewControllerDelegate> LabelVCDelegate;


@property (weak, nonatomic) IBOutlet UITableView *labelTableView;
@property (weak, nonatomic) IBOutlet UIButton *AddBtn;

- (IBAction)AddORDeleteLabelAction:(id)sender;


-(void) setChapter:(int) chapter andFeature:(int) feature  andPage:(int) page ;
-(void) loadDataFromCoreData;
@end
